<template>
	<view class="content">
		<view class="suc-img"><image src="../../static/success.png" mode=""></image></view>
		<view class="label-txt-h">提交成功~</view>
		<view class="label-txt-p">请登录物联云商商家版</view>
		<view class="label-txt-p">{{loginUrl}}</view>
		<view class="success-btn">{{btnTxt}}</view>
		<view class="success-tips">登录物联云商商家版 > 提交店铺资质</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				accountType:0,
				loginUrl:'',
				btnTxt:'',
			}
		},
		onLoad(option) {
			console.log(option.id);
			if(option.id==1){
				this.loginUrl = 'life.hailu1688.com';
				this.btnTxt = '手机端访问：'+this.loginUrl;
			}else if(option.id==2){
				this.loginUrl = 'shop.hailu1688.com';
				this.btnTxt = '电脑端访问：'+this.loginUrl;
			}
			this.accountType = option.id;
		},
		onUnload: function () {
		    //window.history.go(-3);
			let host = window.location.protocol + '//' + window.location.host;
			window.location.href = host;
		},
		methods: {
			
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding-top: 30rpx;
	}
	
	.suc-img image {
		width: 384rpx;
		height: 334rpx;
	}
	.suc-img {
		width: 384rpx;
		height: 334rpx;
		margin-top: 60rpx;
	}
	
	.label-txt-h {
		color: #00D5D4;
		text-align: center;
		font-size: 36rpx;
		margin: 30rpx 0rpx;
	}
	
	.label-txt-p {
		color: #00D5D4;
		text-align: center;
		font-size: 30rpx;
	}
	
	.success-btn {
		background: #00D5D4;
		font-size: 30rpx;
		color: #FFFFFF;
		padding: 20rpx 20rpx;
		border-radius: 50rpx;
		width: 600rpx;
		text-align: center;
		margin-top: 200rpx;
	}
	
	.success-tips {
		text-align: center;
		color: #999999;
		font-size: 28rpx;
		margin: 40rpx auto;
	}
</style>
